package test;

public class LovoException extends Exception{
    private int errorCode;
    private String errorMsg;

    public LovoException() {
    }

    public LovoException(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
    public void printError(){
        System.out.println("异常码：" + errorCode + " 异常描述：" + errorMsg);
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
